function AudioPlayer(src) {
    this.audio = new Audio();
    this.audio.src = src;
}
AudioPlayer.prototype = {
    play() {
        this.audio.play();
        return _getDuration();
    },
    _getDuration() {
        return this.audio.duration;
    },
}

function dragstart(e) {
    ev.preventDefault();
    var data = e.dataTransfer.getData("Text");
    if (data == 'audio1') {

    }
}